﻿@using GSLMS.Entity.Enum
@model GSLMS.Entity.TB_APP_PROINFO
@{
    Layout = null;

    bool isHou = Model.BUSSTYPE == 3;//是否赎楼
    var ShareHolderInfos = Model.ProShareHolderInfos ?? new List<GSLMS.Entity.TB_APP_SHAREHOLDERINFO>();

    bool isAudit = string.IsNullOrEmpty(Request["actiondo"]);
    var curentRoles = (Session["CurentUser"] as GSLMS.Entity.DTO.CurrentUserDTO).Roles;
    bool isMeditorTel = curentRoles.SingleOrDefault(c => c.ID == "DianDang_Apply_ProInfo_10") != null;
}
<div class="pageContent">
    <div class="tabs" currentindex="0" eventtype="click">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li><a href="javascript:;"><span>@(isHou ? "赎楼申请信息" : "立项申请信息")</span></a></li>
                    <li><a href="DianDang/Apply/ProInfo/MetInfoCreate/@Model.ID?actionto=read" class="j-ajax">
                        <span>材料收集清单</span></a></li>
                    <li><a href="DianDang/Apply/ProInfo/TarInfoList/@Model.ID?actionto=read" class="j-ajax">
                        <span>共同借款人</span></a></li>
                    <li><a href="DianDang/Apply/ProInfo/ConInfoList/@Model.ID?actionto=read" class="j-ajax">
                        <span>联系人</span></a></li>
                    <li><a href="DianDang/Apply/ProInfo/FilesInfoList/@Model.ID?actionto=read" class="j-ajax">
                        <span>附件</span></a></li>
                    @if (isAudit)
                    {
                        <li><a href="DianDang/Apply/bManager/GProInfo/@Model.ID?actionto=read" class="j-ajax">
                            <span>审批</span></a></li>
                    }
                </ul>
            </div>
        </div>
        <div class="tabsContent">
            <div>
                <div class="pageFormContent" layouth="90">
                    @if (!isHou)
                    {
                        <div>
                            <p>
                                <label>
                                    申请编号：</label>
                                @Html.ValueFor(model => model.APPLYNO)
                            </p>
                            <p>
                                <label>
                                    贷款类型：</label>
                                @((ApplyEnum.ProLoanType)Model.LOANTYPE)
                            </p>
                            <p>
                                <label>
                                    业务经理：</label>
                                @Html.ValueFor(model => model.SALESMAN)
                            </p>
                            <p>
                                <label>
                                    所属部门：</label>
                                @Html.ValueFor(model => model.DEPNAME)
                            </p>
                            <p>
                                <label>
                                    申请日期：</label>
                                @(Model.APPDATE == null ? "" : Model.APPDATE.Value.ToString("yyyy-MM-dd"))
                            </p>
                            <p>
                                <label>
                                    业务类型：</label>
                                @((ApplyEnum.RegBussType)Model.BUSSTYPE)
                            </p>
                            <p>
                                <label>
                                    贷款产品：</label>
                                @Html.ValueFor(model => model.PRODUCTNAME)
                            </p>
                            <p>
                                <label>
                                    来源渠道：</label>
                                @Html.ValueFor(model => model.SOURCE)
                            </p>
                            <p>
                                <label>
                                    中介人：</label>
                                @Html.ValueFor(model => model.MEDIATOR)
                            </p>
                            <p>
                                <label>
                                    中介人账号：</label>
                                @Html.ValueFor(model => model.MEDIATORACCOUNT)
                            </p>
                            @if (isMeditorTel)
                            {
                                <p>
                                    <label>
                                        中介人手机号：</label>
                                    @Html.ValueFor(model => model.MEDIATORTEL)
                                </p>
                            }
                            <div class="divider" />
                            <p style="width: 100px">
                                <label>
                                    存在特批：</label>
                                <dl style="width: 100px">
                                    <dt style="width: 30px">@(Model.ISSPECIAL == 1 ? "是" : "否")</dt>
                                    @if (Model.ISSPECIAL > 0)
                                    {
                                        <dt style="width: 50px">&nbsp; <a class="button" href="DianDang/Apply/SpecailInfo/Details/@Model.SPECID?OpID=@ViewData["OperateID"]" Target="dialog" >
                                            <span>查看</span></a></dt>
                                    }
                                </dl>
                            </p>
                            <p>
                                <label>
                                    跟进风控:</label>
                                @* @Model.AduRiskControl.AUDITBY*@
                            </p>
                            <div class="divider" />
                            <p>
                                <label>
                                    客户名称：</label>
                                @Html.ValueFor(model => model.CUSTNAME)
                            </p>
                            <p>
                                <label>
                                    证件类型：</label>
                                @Html.ValueFor(model => model.DOCTYPENAME)
                            </p>
                            <p>
                                <label>
                                    证件号码：</label>
                                @Html.ValueFor(model => model.CUSTNO)
                            </p>
                            <p>
                                <label>
                                    联系人：</label>
                                @Html.ValueFor(model => model.CONTACT)
                            </p>
                            <p>
                                <label>
                                    联系人手机1：</label>
                                @Html.ValueFor(model => model.CONTRACTTEL)
                            </p>
                            <p>
                                <label>
                                    联系人手机2：</label>
                                @Html.ValueFor(model => model.CONTRACTTEL2)
                            </p>
                            <p>
                                <label>
                                    法定代表人：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.LEGAL)
                            </p>
                            <p>
                                <label>
                                    法定代表人手机1：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.LEGALTEL)
                            </p>
                            <p>
                                <label>
                                    法定代表人手机2：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.LEGALTEL2)
                            </p>
                            <p>
                                <label>
                                    实际控制人：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.CONBY)
                            </p>
                            <p>
                                <label>
                                    实际控制人手机1：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.CONBYTEL)
                            </p>
                            <p>
                                <label>
                                    实际控制人手机2：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.CONBYTEL2)
                            </p>
                            <div class="divider" />
                            <table class="list nowrap" width="90%">
                                <thead>
                                    <tr>
                                        <th>
                                            主要股东名称
                                        </th>
                                        <th>
                                            现住址
                                        </th>
                                        <th>
                                            电话
                                        </th>
                                        <th>
                                            出资方式
                                        </th>
                                        <th>
                                            金额
                                        </th>
                                        <th>
                                            股权比例
                                        </th>
                                        <th>
                                            是否到位
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach (var item in ShareHolderInfos)
                                    { 
                                        <tr>
                                            <td>@item.NAME
                                            </td>
                                            <td>@item.ADDRESS
                                            </td>
                                            <td>@item.TEL
                                            </td>
                                            <td>@item.FUNDED
                                            </td>
                                            <td>@item.AMOUNT
                                            </td>
                                            <td>@item.RATIO
                                            </td>
                                            <td>@(item.ISPAYED == 0 ? "否" : "是")
                                            </td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                            <div class="divider" />
                            <p>
                                <label>
                                    公司地址：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.CORPADDRESS)
                            </p>
                            <p>
                                <label>
                                    注册资本：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.REGAMOUNT)
                                (万元)
                            </p>
                            <p style="width: 95%; height: 50px">
                                <label>
                                    主营业务：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.MAINBUSS)
                            </p>
                            <p>
                                <label>
                                    借款金额：</label>
                                @Html.ValueFor(model => model.AMOUNT) 
                                万元
                            </p>
                            <p>
                                <label>
                                    贷款期限：</label>
                                @Html.ValueFor(model => model.LOANPHASE)
                                @(Model.LOANPHAESTYPE == 0 ? "天" : "月")
                            </p>
                            <p>
                                <label>
                                    综合费率：</label>
                                @Html.ValueFor(model => model.GENERALRATE)
                                 %
                            </p>
                            <p>
                                <label>
                                    利率：</label>
                                @Html.ValueFor(model => model.RATE)
                                 %
                            </p>
                            <p>
                                <label>
                                    管理费率：</label>
                                @Html.ValueFor(model => model.MANAGEFEERATE)
                                 %
                            </p>
                            <p>
                                <label>
                                    还款方式：</label>
                                @((ApplyEnum.ProRepayment)Model.ProUnForHouInfo.REPAYMENT)
                            </p>
                            <p>
                                <label>
                                    预收费用：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.ADVAMT)
                                元
                            </p>
                            <p style="width: 95%; height: 50px">
                                <label>
                                    用途：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.USEFOR)
                            </p>
                            <p style="width: 95%; height: 50px">
                                <label>
                                    业务简述：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.BUSSBRIEF)
                            </p>
                            <p style="width: 95%; height: 50px">
                                <label>
                                    贷款方式：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.LOANMODE)
                            </p>
                            <p style="width: 95%; height: 50px">
                                <label>
                                    还款来源：</label>
                                @Html.ValueFor(model => model.ProUnForHouInfo.REPAYSOURCE)
                            </p>
                        </div>
                    }
                    else
                    { 
                        <div>
                            <p>
                                <label>
                                    申请编号：</label>
                                @Html.ValueFor(model => model.APPLYNO)
                            </p>
                            <p>
                                <label>
                                    所属部门：</label>
                                @Html.ValueFor(model => model.DEPNAME)
                            </p>
                            <p>
                                <label>
                                    申请日期：</label>
                                @(Model.APPDATE==null?"":Model.APPDATE.Value.ToString("yyyy-MM-dd"))
                            </p>
                            <p>
                                <label>
                                    业务类型：</label>
                                @((ApplyEnum.RegBussType)Model.BUSSTYPE)
                            </p>
                            <p>
                                <label>
                                    贷款产品：</label>
                                @Html.ValueFor(model => model.PRODUCTNAME)
                            </p>
                            <p>
                                <label>
                                    来源渠道：</label>
                                @Html.ValueFor(model => model.SOURCE)
                            </p>
                            <p>
                                <label>
                                    中介人：</label>
                                @Html.ValueFor(model => model.MEDIATOR)
                            </p>
                            <p>
                                <label>
                                    中介人账号：</label>
                                @Html.ValueFor(model => model.MEDIATORACCOUNT)
                            </p>
                            <div class="divider" />
                            <p style="width: 100px">
                                <label>
                                    存在特批：</label>
                                <dl style="width: 100px">
                                    <dt style="width: 30px">@(Model.ISSPECIAL == 1 ? "是" : "否")</dt>
                                    @if (Model.ISSPECIAL > 0)
                                    {
                                        <dt style="width: 50px">&nbsp; <a class="button" href="DianDang/Apply/SpecailInfo/Details/@Model.SPECID?OpID=@ViewData["OperateID"]" Target="dialog" >
                                            <span>查看</span></a></dt>
                                    }
                                </dl>
                            </p>
                            <p>
                                <label>
                                    跟进风控:</label>
                                @* @Model.AduRiskControl.AUDITBY*@
                            </p>
                            <div class="divider" />
                            <p>
                                <label>
                                    申请人姓名：</label>
                                @Html.ValueFor(model => model.CUSTNAME)
                            </p>
                            <p>
                                <label>
                                    证件类型：</label>
                                @Html.ValueFor(model => model.DOCTYPENAME)
                            </p>
                            <p>
                                <label>
                                    证件号码：</label>
                                @Html.ValueFor(model => model.CUSTNO)
                            </p>
                            <p>
                                <label>
                                    交易相对方：</label>
                                @Html.ValueFor(model => model.ProForHouInfo.TRADEBY)
                            </p>
                            <p>
                                <label>
                                    借款金额：</label>
                                @Html.ValueFor(model => model.AMOUNT) 万元
                            </p>
                            <p>
                                <label>
                                    贷款期限：</label>
                                @Html.ValueFor(model => model.LOANPHASE)
                                @(Model.LOANPHAESTYPE == 0 ? "天" : "月")
                            </p>
                            <p>
                                <label>
                                    赎楼方式：</label>
                                @((ApplyEnum.ProHouType)Model.ProForHouInfo.FORHOUTYPE)
                            </p>
                            <p>
                                <label>
                                    业务类型：</label>
                                @((ApplyEnum.ProBussType)Model.ProForHouInfo.BUSSTYPE)
                            </p>
                            <p>
                                <label>
                                    物业位置：</label>
                                @Html.ValueFor(model => model.ProForHouInfo.HOUADD)
                            </p>
                            <ul>
                              <li style="width:95%;line-height:25px;">
                                <label>
                                    物业权属：</label>
                                该物业权利人为：
                                <span>
                                 <u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.TENRIGHT)&nbsp;</u>
                                </span> 
                                ，现抵押于
                                <span>
                                  <u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.TENBANK)&nbsp;</u>
                                </span>
                                银行
                                <span>
                                    <u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.TENSUBBACK)&nbsp;</u>
                                </span>
                                支行，截至
                                <span>
                                    <u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.TENENDDATE, "{0:yyyy年MM月dd日}")&nbsp;</u>
                                </span> 
                                尚欠银行款项合计为
                                <span>
                                   <u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.TENLEFTAMT)&nbsp;</u>
                                </span>
                                元人民币。 
                            </li>
                            <li style="width:95%;line-height:25px;">
                                <label>
                                    交易情况：</label>
                                房产购建价为
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.HOUPRICE)&nbsp;&nbsp;</u></span> 
                                元 ，此次交易总价为
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.HOUTOTALPRICE)&nbsp;&nbsp;</u></span>
                                元 ，买方已付定金
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.DOWNPAYAMT)&nbsp;&nbsp;</u></span> 
                                元，首期款为
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.FIRSTPAYAMT)&nbsp;&nbsp;</u></span>
                                元，付款方式：
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.PAYMOD)&nbsp;&nbsp;</u></span>
                            </li>
                            <li style="width:95%;line-height:25px;">
                                <label>
                                    还款来源：</label>
                                新按揭银行：
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.PAYBANK)&nbsp;&nbsp;</u></span> 
                                银行
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.PAYSUBBANK)&nbsp;&nbsp;</u></span>
                                支行&nbsp;&nbsp;&nbsp;&nbsp;承诺金额：
                                <span><u>&nbsp;&nbsp;@Html.ValueFor(model => model.ProForHouInfo.PROMISEAMT)&nbsp;&nbsp;</u></span> 
                                <span>万元</span>
                            </li>
                            </ul>
                            <p>
                                <label>
                                    利率：</label>
                                @Html.ValueFor(model => model.RATE)
                                %
                            </p>
                            <p>
                                <label>
                                    手续费：</label>
                                @Html.ValueFor(model => model.LOANFEE)
                                %
                            </p>
                            <p>
                                <label>
                                    还款方式：</label>
                                @((ApplyEnum.ProRepayment)Model.ProForHouInfo.SPAREFIELD1)
                            </p>
                            <p style="width: 95%">
                                <label style="width: 180px">
                                    反担保措施文件及反担保措施1：</label>
                                @Html.ValueFor(model => model.ProForHouInfo.COUGUA1)
                            </p>
                            <p style="width: 95%">
                                <label style="width: 180px">
                                    反担保措施文件及反担保措施2：</label>
                                @Html.ValueFor(model => model.ProForHouInfo.COUGUA2)
                            </p>
                            <p style="width: 95%">
                                <label>
                                    落实情况1：</label>
                                @Html.ValueFor(model => model.ProForHouInfo.VERIFILD1)
                            </p>
                            <p style="width: 95%">
                                <label>
                                    落实情况2：</label>
                                @Html.ValueFor(model => model.ProForHouInfo.VERIFILD2)
                            </p>
                            <p>
                                <label>
                                    项目经理：</label>
                                @Html.ValueFor(model => model.SALESMAN)
                            </p>
                            <p>
                                <label>
                                    共同面签人：</label>
                                @Html.ValueFor(model => model.ProForHouInfo.SIGNMAN)
                            </p>
                        </div>
                    }
                </div>
            </div>
            <div>
            </div>
            <div>
            </div>
            <div>
            </div>
            <div>
            </div>
        </div>
    </div>
</div>
